package com.nbsoft.qhrp.noBudget.web.model;

import com.nbsoft.qhrp.common.Util;

public class NoBudgetPreModel {
	
    private java.lang.Long id;
    private java.lang.Long unitId;
    private java.lang.String unitName;
    private java.lang.Short year;
    private java.lang.String preShouru = "";
    private java.lang.String preZhichu = "";
    private java.lang.String shangnianJieyu = "";
    private java.lang.Long parentId1;
    private java.lang.String parentName1;
    private java.lang.Long parentId2;
    private java.lang.String parentName2;
    
    public NoBudgetPreModel() {
    }
    
    public NoBudgetPreModel(
    		Long unitId,
    		String unitName,
    		String parentName1,
    		String parentName2
    		) {
		this.unitId = unitId;
		this.unitName = unitName;
		this.parentName1 = parentName1;
		this.parentName2 = parentName2;
    }
    
    public NoBudgetPreModel(
    		Long unitId,
    		Double preShouru,
    		Double preZhichu,
    		Double shangnianJieyu
    		) {
		this.unitId = unitId;
		this.preShouru = Util.roundBigDouble(preShouru);
		this.preZhichu = Util.roundBigDouble(preZhichu);
		this.shangnianJieyu = Util.roundBigDouble(shangnianJieyu);
    }
    
    public NoBudgetPreModel(
    		String unitId,
    		String unitName,
    		String preShouru,
    		String preZhichu,
    		String shangnianJieyu
    		) {
		this.unitId = Long.valueOf(unitId);
		this.unitName = unitName;
		this.preShouru = preShouru;
		this.preZhichu = preZhichu;
		this.shangnianJieyu = shangnianJieyu;
    }
    
    public void copyFee(NoBudgetPreModel obj) {
    	this.preShouru = obj.preShouru;
    	this.preZhichu = obj.preZhichu;
    	this.shangnianJieyu = obj.shangnianJieyu;
    }
    
	public java.lang.Long getId() {
		return id;
	}
	public void setId(java.lang.Long id) {
		this.id = id;
	}

	public java.lang.Long getUnitId() {
		return unitId;
	}
	public void setUnitId(java.lang.Long unitId) {
		this.unitId = unitId;
	}
	public java.lang.String getUnitName() {
		return unitName;
	}
	public void setUnitName(java.lang.String unitName) {
		this.unitName = unitName;
	}
	public java.lang.Short getYear() {
		return year;
	}
	public void setYear(java.lang.Short year) {
		this.year = year;
	}
	public java.lang.Long getParentId1() {
		return parentId1;
	}
	public void setParentId1(java.lang.Long parentId1) {
		this.parentId1 = parentId1;
	}
	public java.lang.Long getParentId2() {
		return parentId2;
	}
	public void setParentId2(java.lang.Long parentId2) {
		this.parentId2 = parentId2;
	}
	public java.lang.String getParentName1() {
		return parentName1;
	}
	public void setParentName1(java.lang.String parentName1) {
		this.parentName1 = parentName1;
	}
	public java.lang.String getParentName2() {
		return parentName2;
	}
	public void setParentName2(java.lang.String parentName2) {
		this.parentName2 = parentName2;
	}

	public java.lang.String getPreShouru()
	{
		return preShouru;
	}

	public void setPreShouru(java.lang.String preShouru)
	{
		this.preShouru = preShouru;
	}

	public java.lang.String getPreZhichu()
	{
		return preZhichu;
	}

	public void setPreZhichu(java.lang.String preZhichu)
	{
		this.preZhichu = preZhichu;
	}

	public java.lang.String getShangnianJieyu()
	{
		return shangnianJieyu;
	}

	public void setShangnianJieyu(java.lang.String shangnianJieyu)
	{
		this.shangnianJieyu = shangnianJieyu;
	}
}
